<?php
namespace app\home\controller;
use think\Db;

class Chanpin extends Base
{
    public function chanpin()
    {
		$product=Db::name('product')->select();
		$this->assign('product',$product);
    	$this->base();//用于配合导入对应的样式
    	return $this->fetch();
    
	}
}